<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />

<title>获取注册码</title>
<script language="javascript">
function getsnme (){
var idx = $('tbid').value;
var mailx =$('tbmail').value;
var macx = Cookie.read('__MAC');
if(IsEmail(mailx))
{
	var urlstr = 'http://yuanbao.org/Y/index.php/Admin/MakeSN';
	//var urlstr = 'http://yuanbao/index.php/Admin/MakeSN';
	new Request.JSONP({
	url:  urlstr,
    data: {
        id: idx,
        mac: macx,
        mail: mailx
    },	
	onComplete: function(data){				
				if(data['status']=='ok') 
				{
				msg(data['msg']);//下面是更新本地user表
				var datastr = 'upfield='+'HAS_SN'+'&HAS_SN='+1;
				var myRequest = new Request.JSON({
				method: 'post', 
				url: 'index.php/Admin/upUser',
				headers: 'Content-Type:text/html; charset=utf-8',
				data: datastr,
				onSuccess: function(data){
						msg('请及时收取Mail，提交注册码');
						updateMain('Serial number','index.php/Admin/entSn');					
				},		
				onFailure: function(){
					msg('请求失败');
						}	
				}).send(); 	
				
				//下面是更新远程记录			
				
				}
	}
	}).send();
}
else
{msg('Email或id不正确');}
}
</script>
</head>	

<body>
<pre>
<h2>免费元宝邀请码获得规则：</h2>
<p>1.加入淘宝帮派<a href="http://bangpai.taobao.com/group/1029205.htm" target="_blank">http://bangpai.taobao.com/group/1029205.htm</a>，发布一个店铺自我介绍帖，不得少于200字，包括引路人淘宝id（没有可不填）主营业务，信用等级，经营时间等</p>
<p>2.邀请三个卖家加入本帮派（当月好评不低于10个），并各自发布有效的自我介绍帖，帖子中说明引路人是你的淘宝id</p>
<p>3.在元宝系统首页底部，点击获得序列号，填写简单资料，24小时内，后台会查看帮派帖子，符合要求的会自动发送序列号到你提供的email，有效期一年</p>
<p><label>淘宝ID<input type="text" id="tbid" value="{$Think.session.UserInfo.user_id}" size="23"/></label><label>Email<input type="text" id="tbmail" value="{$Think.session.UserInfo.email}" size="23" /></label><input type="button" id="bt2" name="bt2" onclick="getsnme()" class="button" value="获取序列号到Email" />  
  <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
  到GoogleCode<a href="http://code.google.com/p/yuanbaooss/downloads/list" target="_blank">下载最新版元宝</a>，安装，注意下载说明文件
  </pre>
</body>
</html>